package desiginmodel.observe;

public class Test {
	public static void main(String[] args) { 
		Target beautifulGirl = new BeautifulGirl();
		Observer aBoy = new ABoy(beautifulGirl);
		Observer bBoy = new BBoy(beautifulGirl);
		Observer cBoy = new CBoy(beautifulGirl);
		System.out.println("beautifulGirl 结婚了");
		beautifulGirl.setState("已婚");
		System.out.println("beautifulGirl 离婚了");
		beautifulGirl.setState("离婚");
	}
}
